<?php 
Yii::app()->clientScript->registerCoreScript('jquery.ui');
Yii::app()->clientScript->registerScriptFile('js/app/dispatchboard.js',  CClientScript::POS_BEGIN);
Yii::app()->clientScript->registerScriptFile('js/jquery.tooltip.js',  CClientScript::POS_HEAD);
?>
<div class="container">
    <div class="inside">
    <h1>Dispatch Board</h1>
    <div class="form">
        <div class="row">
            <label>Select Board</label>
            <?php echo CHtml::dropDownList('boardid', $lastBoardId, DispatchBoard::getListWithAll());?>
            <?php echo CHtml::button('Refresh',array('onclick'=>'refresh();')); ?>
            <label id="reloadTimer" style="font-weight: normal;"></label>
        </div>

    </div>

    <div id="board">
        <?php $this->renderPartial('_board',array('statusList'=>$statusList,'employeeList'=>$employeeList)); ?>
    </div>
  </div>
</div>
<?php $this->renderPartial('/copyright',array('center'=>true));?>